/**
 * Created by Auser on 2017/1/10.
 */
var home = new Object({
    openScreen : function(url){
        window.open(url);
    },
    earningDetails: function (obj) {
        //console.info("earnings..")
        var $main = $("#main_content");
        var url = contextPath + '/finance/earnings';
        $main.attr('data-url',contextPath + '/finance/earnings');
        $main.load(url);
        setTimeout(function(){
            window.PixelAdmin.MainMenu.prototype.detectActiveItem();
            activePageHeader(obj);
        },500);
    },
    wallDetails: function (obj) {
        var wallUrl = contextPath + '/screen/wall'
        $("#main_content").attr('data-url',wallUrl);
        $("#main_content").load(wallUrl);
        setTimeout(function(){
            window.PixelAdmin.MainMenu.prototype.detectActiveItem();
            activePageHeader(obj);
        },500);
    },
    occupyDetails: function (obj) {
        var occupyUrl = contextPath + '/screen/occupy';
        $("#main_content").attr('data-url',contextPath + '/screen/occupy');
        $("#main_content").load(occupyUrl);
        setTimeout(function(){
            window.PixelAdmin.MainMenu.prototype.detectActiveItem();
            activePageHeader(obj);
        },500);
    }
})